package com.ufox.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ufox.entity.Member;
import com.ufox.entity.MemberCond;
import com.ufox.mapper.MemberMapper;
import com.ufox.service.IMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 会员信息表 服务实现类
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-05-31
 */
@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements IMemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public Page<Member> selectAllByCond(Page<Member> pageInfo, MemberCond memberCond) {
        return memberMapper.selectAllByCond(pageInfo,memberCond);
    }

    @Override
    public Member selectMemberById(Integer id) {
        return memberMapper.selectMemberById(id);
    }


}
